package com.beauty.dressing.common.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xutingz
 * @E-mail xutz@xianlanba.com
 * @date 2018/5/27
 */
public class LeaseOrder extends BaseBean {
    public long order_id;     //订单id
    public String order_number; //订单编号
    public long lease_id;     //租赁商品id
    public String lease_name;  //租赁物品名称
    public String deposit;//烟的押金
    public String leaseImage;//烟的图片
    public int leaseInventory;//烟的库存
    public String leasePostage; //烟的邮费
    public long sales_id;  //烟油id
    public String sales_name; //烟油名称
    public String price;      //烟油价格
    public String salesImage;//烟油图片
    public int salesInventory;//烟油库存
    public String salesPostage; //烟油的邮费

    public List<WriteOrderBean> getOrderList() {
        List<WriteOrderBean> list = new ArrayList<>();
        WriteOrderBean lease = new WriteOrderBean(lease_id, lease_name, leaseImage, deposit, 1, false);
        list.add(lease);
        if (sales_id > 0 && sales_name != null) {
            WriteOrderBean oil = new WriteOrderBean(sales_id, sales_name, salesImage, price, 1, true);
            list.add(oil);
        }
        return list;
    }
}
